package com.sjzd.discoveryclient.eureka;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author ZFQ
 * @date 2022/2/13
 */
@FeignClient(name = "service-provider", fallbackFactory = RemoteServiceFallbackFactory.class)
public interface IRemoteService {
    @GetMapping("/service/hello")
    String hello();

    @GetMapping("/service/error")
    String error();

    @GetMapping("/service/echo")
    String echo(@RequestParam String command);

    @PostMapping("/service/user")
    String user(@RequestBody ClientUser user);
}
